﻿using System;
using System.Text;
using JKF.BusinessLayer.BLL;
using JKF.Substructure;
using JKF.HandlerLayer;
namespace JKF.Web.Feedback
{
    public partial class Feedback_Add : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            MODULE_NAME_EN = "FEEDBACK";
        }

        protected void BtnUpload_Click(object sender, EventArgs e)
        {
            ImageHandler imgHandler = new ImageHandler();
            string msg;

            string filePath="";

            bool isSucess = imgHandler.UploadPhotos(FileUpload1.PostedFile, out msg,out filePath);
            Page.ClientScript.RegisterClientScriptBlock(this.GetType(),"tip","alert('上传成功')",true);
        
            if (isSucess)
            {
                LblFile_path.Text = filePath;
                FILE_PATH.Value = filePath;
            }
     
        }
    }
}